package com.edu.zju.scs.panacea;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.edu.zju.scs.panacea.mapper") //扫描的mapper
public class PanaceaApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(PanaceaApplication.class);
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(PanaceaApplication.class, args);
    }
}


